#!/usr/bin/python3
# -*- coding:utf-8 -*-
""""
@Author: shijianbo
@Email:
@Time: 2022/6/16 15:26
@File: nkConfig.py
反洗钱环境信息
"""

amlConfig = {
    'env': 'oracle',
    'mysql': {
        'title': 'mysql_主干',
        'system': {
            'url': 'http://10.20.46.217:8088/frame-layout/login',
            'username': 'admin',
            'password': '1'
        },
        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '主干mysql'
        },
        'machine': {
            'ip': '10.20.46.217',
            'user': 'root',
            'password': 'qmfx@123',
        },
        'databases': {
            'type': 'mysql',
            'ip': '10.20.46.217',
            'port': 33061,
            'user': 'root',
            'password': 'fxq5@123'
        }
    },
    'oracle': {
        'title': 'oracle_主干',
        'system': {
            'url': 'http://10.20.37.111:8088/frame-layout/login',
            'username': 'admin',
            'password': '111111'
        },
        'machine': {
            'ip': '10.20.37.111',
            'user': 'root',
            'password': 'fxq5@123456',
        },

        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '主干oracle'
        },
        'redis': {
            'ip': '10.20.37.111',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA'
        },
        'databases': {
            'type': 'oracle',
            'ip': '10.20.37.111',
            'port': 1521,
            'server': 'bsaml',
            'user': 'bsaml',
            'password': 'bsaml'
        }
    },
    'oracle_trust': {
        'title': 'oracle_信托',
        'system': {
            'url': 'http://10.20.37.37:8088/frame-layout/login',
            'username': 'admin',
            'password': '111111'
        },
        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '信托oracle'
        },
        'machine': {
            'ip': '10.20.37.37',
            'user': 'root',
            'password': 'fxq5@123',
        },
        'redis': {
            'url': '10.20.37.37',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA',
        },

        'databases': {
            'type': 'oracle',
            'ip': '10.20.37.37',
            'port': 1521,
            'server': 'bsaml',
            'user': 'sys as sysdba',
            'password': 'sys'
        }
    },
    'BigData': {
        'title': 'oracle_大数据',
        'system': {
            'url': 'http://10.20.162.246:8088/frame-layout/login',
            'username': 'admin',
            'password': '111111'
        },
        'see': {
            'url': 'http://77f974b1871f4cc49c0b9b06b907092a.vm-a.hep.see.dev.hundsun.com/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.162.246:9090/jrescloud_servicemgr/index.html#/serviceManagement',
            'user': 'admin',
            'password': '',
            'zone': ''
        },
        'machine': {
            'ip': '10.20.162.246',
            'user': 'root',
            'password': 'fxq5@123',
        },
        'redis': {
            'url': '10.20.162.246',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA'
        },
        'databases': {
            'type': 'oracle',
            'ip': '10.20.162.246',
            'port': 1521,
            'server': 'bsaml',
            'user': 'sys as sysdba',
            'password': 'sys'
        }
    },
    # 冒烟
    'smoke': {
        'title': 'mysql_冒烟',
        'system': {
            'username': 'admin',
            'password': '1',
            'url': 'http://10.20.37.216:8088/frame-layout/login'
        },
        'see': {
            'url': 'http://5fe2f97519e744138f2572684a1a59ca.vm-a.hep.see.dev.hundsun.com/acm/app.htm#/dashboard/application/list',
            'view': 'http://5fe2f97519e744138f2572684a1a59ca.vm-a.hep.see.dev.hundsun.com/acm/app.htm#/dashboard/governance/warehouse/servicelist?appId=bdafba03-c5e7-4957-b40b-104be6775d22&isModule=NORMAL',
            'user': 'admin',
            'password': '',
            'zone': ''
        },
        'machine': {
            'ip': '10.20.37.216',
            'user': 'root',
            'password': 'ERTzxc@#$123'
        },
        'redis': {
            'url': '10.20.148.34',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA',
        },
        'databases':{
            'type': 'mysql',
            'ip': '10.20.37.216',
            'port': 33061,
            'user': 'root',
            'password': 'root'
        },
    },
    'dm': {
        'title': 'dm_主干',
        'system': {
            'url': 'http://10.20.194.79:8088/frame-layout/login',
            'username': 'admin',
            'password': '111111',
        },
        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '主干达梦'
        },
        'machine': {
            'ip': '10.20.194.79',
            'user': 'root',
            'password': 'hz6L5bcyn'
        },
        'redis': {
            'url': '10.20.194.79',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA',
        },
        'databases': {
            'type': 'dm',
            'ip': '10.20.194.79',
            'database':'SYSDBA',
            'port': 5236,
            'user': 'SYSDBA',
            'password': 'SYSDBA'
        },
    },
    'tdsql_for_mysql': {
        'title': 'td_for_mysql_主干',
        'system': {
            'url': 'http://10.20.249.155:8088/frame-layout/login',
            'username': 'admin',
            'password': '111111'
        },
        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '主干tdsql for mysql'
        },
        'machine': {
            'ip': '10.20.249.155',
            'user': 'root',
            'password': 'fxq5@123'
        },
        'redis': {
            'ip': '10.20.249.156',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA'
        },
        'databases': {
            'type': 'tdsql',
            'ip': '10.20.249.156',
            'port': 15001,
            'user': 'tdsqlpcloud',
            'password': 'admin@111'
        },
    },
    'pg': {
        'title': 'pg_主干',
        'system': {
            'url': 'http://10.20.37.112:8088/frame-layout/login',
            'username': 'admin',
            'password': '1',
        },
        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '主干pg'
        },
        'machine': {
            'ip': '10.20.37.112',
            'user': 'root',
            'password': 'fxq5@123',
        },
        'redis': {
            'ip': '10.20.37.112',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA',
        },
        'databases': {
            'type': 'postgresql',
            'ip': '10.20.37.112',
            'port': 5432,
            'server': 'hsrcm',
            'user': 'postgresql',
            'password': 'fxq123',
            'schema': ''
        },
    },
    'td_for_pg': {
        'title': 'td_for_pg_主干',
        'system': {
            'url': 'http://10.20.161.145:8088/frame-layout/login',
            'username': 'admin',
            'password': '111111'
        },
        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '主干tdsql for pg'
        },
        'machine': {
            'ip': '10.20.161.145',
            'user': 'root',
            'password': 'ERTzxc@#$123'
        },
        'redis': {
            'ip': '10.20.161.145',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA',
        },
        'databases': {
            'type': 'postgresql',
            'ip': '10.20.27.168',
            'port': 11345,
            'server': 'hsrcm_5',
            'user': 'hsrcm_admin',
            'password': 'ERTzxc@#$123',
            'schema': ''
        },
    },
    'ob': {
        'title': 'ob_主干',
        'system': {
            'url': 'http://10.20.192.122:8088/frame-layout/login',
            'username': 'admin',
            'password': '111111'
        },
        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '主干OB'
        },
        'machine': {
            'ip': '10.20.192.122',
            'user': 'root',
            'password': 'pprP!49Y',
        },
        'redis': {
            'ip': '10.20.192.122',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA',
        },
        'databases': {
            'server': 'sys',
            'type': 'oceanbase',
            'ip': '10.20.192.107',
            'port': 2883,
            'user': 'SYS@oboracle#obtest',
            'password': '123456'
        },
    },
    'ob_trust': {
        'title': 'ob_信托',
        'system': {
            'username': 'admin',
            'password': '111111',
            'url': 'http://10.20.194.80:8088/frame-layout/login',
        },
        'see': {
            'url': 'http://10.20.160.183:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.160.183:8081/acm/app.htm#/iframeboard?key=servicemgr&productTypeName=jrescloud_servicemgr',
            'user': 'admin',
            'password': '539c45a291c555972145cfcf730d7ae2f7a6a9bba2ddcf92ae0ce328ccb1c9473e709c781273582269c89805e7c574018cf3a61a00f2f490261fc732cc3875e8',
            'zone': '信托OB'
        },
        'machine': {
            'ip': '10.20.194.80',
            'user': 'root',
            'password': 'fxq5@123'
        },
        'redis': {
            'ip': '10.20.192.122',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA',
        },
        'databases': {
            'server': 'sys',
            'type': 'oceanbase',
            'ip': '10.20.192.150',
            'port': 2883,
            'user': 'SYS@oboracle#obtest',
            'password': '123456'
        },
    },
    'mysql_auto': {
        'title': 'mysql_自动化',
        'system': {
            'username': 'admin',
            'password': '1',
            'url': 'http://10.20.37.217:8088/frame-layout/login'
        },
        'see': {
            'url': 'http://8c437379f22e4186b5ac75ad986f7300.vm-a.hep.see.dev.hundsun.com/acm/app.htm#/dashboard/application/list',
            'view': 'http://8c437379f22e4186b5ac75ad986f7300.vm-a.hep.see.dev.hundsun.com/acm/app.htm#/dashboard/governance/warehouse/servicelist?appId=dc9cf3b4-7de9-41ec-be72-a3cbc2079778&isModule=NORMAL',
            'user': 'admin',
            'password': '',
            'zone': ''
        },
        'machine': {
            'ip': '10.20.37.217',
            'user': 'root',
            'password': 'ERTzxc@#$123',
        },
        'redis': {
            
        },
        'databases': {
            'type': 'mysql',
            'ip': '10.20.37.217',
            'port': 33061,
            'user': 'root',
            'password': 'root'
        }
    },
    'dm_auto': {
        'title': 'dm_自动化',
        'system': {
            'username': 'admin',
            'password': '111111',
            'url': 'http://10.20.194.172:8088/frame-layout/login'
        },
        'see': {
            'url': 'http://10.20.154.134:8081/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.194.172:9091/jrescloud_servicemgr/index.html#/serviceManagement',
            'user': 'admin',
            'password': '',
            'zone': ''
        },
        'machine': {
            'ip': '10.20.194.172',
            'user': 'root',
            'password': 'ERTzxc@#$123',
        },
        'redis': {
            'ip': '10.20.194.172',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA',
        },
        'see_user': 'admin',
        'see_password': 'fxq@12345678',
        'see_zone': '基金达梦环境',
        'databases': {
            'type': 'dm',
            'ip': '10.20.194.172',
            'database': 'SYSDBA',
            'port': 5236,
            'user': 'SYSDBA',
            'password': 'DMdb_2023'
        },
    },
    'ob_perfma': {
        'title': 'ob_性能',
        'system': {
            'username': 'admin',
            'password': '1',
            'url': 'http://10.20.192.118:8088/frame-layout/login',
        },
        'see': {
            'url': 'http://e62ab16508ff4038a1e0a1b547c174ed.vm-a.hep.see.dev.hundsun.com/acm/app.htm#/dashboard/application/list',
            'view': 'http://10.20.192.118:9091/jrescloud_servicemgr/index.html#/serviceManagement',
        },
        'machine': {
            'ip': '10.20.192.118',
            'user': 'root',
            'password': 'ERTzxc@#$123',
        },
        'redis': {
            'ip': '10.20.192.118',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA'
        },
        'databases': {
            'server': 'sys',
            'type': 'oceanbase',
            'ip': '10.20.192.119',
            'port': 2883,
            'user': 'SYS@oboracle#obtest',
            'password': '123456'
        },
    },
    'mysql_perfma': {
        'title': 'mysql_性能',
        'system': {
            'username': 'admin',
            'password': '1',
            'url': 'http://10.20.181.112:8088/frame-layout/login'
        },
        'see': {
            'url': 'http://10.20.181.124:8081/acm/#/dashboard/application/list',
            'view': 'http://10.20.181.124:8081/acm/#/dashboard/governance/warehouse/servicelist?appId=74d7b501-fe14-4b23-b132-6e7bca712a5d&isModule=NORMAL',
            'user': 'admin',
            'password': 'fxhg@123456',
        },
        'machine': {
            'ip': '10.20.181.112',
            'user': 'root',
            'password': 'fxhg@1234',
        },
        'redis': {
            'ip': '10.20.181.112',
            'password': '',
        },
        'databases': {
            'type': 'mysql',
            'ip': '10.20.181.116',
            'port': 33061,
            'user': 'root',
            'password': 'DFLTdf87220bf0'
        }
    },
    'oracle_perfma': {
        'title': 'oracle_性能',
        'system': {
            'url': 'http://10.20.181.113:8088/frame-layout/login',
            'username': 'admin',
            'password': '1'
        },
        'see': {
            'url': 'http://10.20.181.124:8081/acm/#/dashboard/application/list',
            'view': 'http://10.20.181.124:8081/acm/#/dashboard/governance/warehouse/servicelist?appId=74d7b501-fe14-4b23-b132-6e7bca712a5d&isModule=NORMAL',
            'user': 'admin',
            'password': 'fxhg@123456',
        },
        'machine': {
            'ip': '10.20.181.113',
            'linux_user': 'root',
            'linux_password': 'ERTzxc@#$123',
        },
        'redis': {
            'ip': '10.20.37.113',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA'
        },
        'databases': {
            'type': 'oracle',
            'ip': '10.20.181.115',
            'port': 1521,
            'server': 'orcl',
            'user': 'sys as sysdba',
            'password': 'sys'
        }
    },
    'dm_perfma': {
        'title': 'dm_性能',
        'system': {
            'username': 'admin',
            'password': '111111',
            'url': 'http://10.20.194.77:8088/frame-layout/login'
        },
        'see': {
            'view': 'http://4d8405deb8bf4ddd896b8a5e98546ed9.vm-a.hep.see.dev.hundsun.com/acm/app.htm#/dashboard/governance/warehouse/servicelist?appId=f025eae3-4191-4279-bf78-83c66f7dbc00&isModule=NORMAL',
            'url': 'http://4d8405deb8bf4ddd896b8a5e98546ed9.vm-a.hep.see.dev.hundsun.com/acm/app.htm#/dashboard/application/list'
        },
        'machine': {
            'ip': '10.20.194.77',
        },
        'redis': {
            'ip': '10.20.194.77',
            'password': '0218F3F82798367AB3B07DCC7153E2D2FECC58EE84D560AA'
        },
        'databases': {
            'type': 'dm',
            'ip': '10.20.194.78',
            'database': 'SYSDBA',
            'port': 5236,
            'user': 'SYSDBA',
            'password': 'SYSDBA'
        },
    },
}

print(amlConfig.keys())